package com.user.feign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.user.pojos.ApAuthor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("leadnews-article")
public interface FeignArticle {
    @PostMapping("/article/api/v1/findById/{id}")
    public ApAuthor findById (@PathVariable("id") Integer id);

    @PostMapping("/article/api/v1/save")
    public ResponseResult save (ApAuthor apAuthor);

    @GetMapping("/article/api/v1/findByIdauthor")
    public ApAuthor findByIdauthor (@PathVariable("id") Integer id);


}
